<?php
/**
 * 初始化APP目录文件
 * User: Clake
 * Date: 16/9/26
 * Time: 13:59
 */
$curr_dir = getcwd();

chdir(__DIR__);

require '../trigger.php';

if (!CK_IS_CLI) {
    return;
}

if (count($argv) <= 1) {
    echo "请输入APP的项目名称,以便创建目录\n";
    return;
}

$app_name = '';

if (count($argv) === 2) {
    $app_name = $argv[1];
}
